package org.vectrics.graphics;


/**
 * @author mmoore
 */
public class LayerShapeConfiguration extends LayerConfiguration {
    public static final int SHAPE_TYPE_RECTANGLE = 0;
    public static final int SHAPE_TYPE_ROUND_RECTANGLE = 1;
    public static final int SHAPE_TYPE_ELLIPSE = 2;
    
    private int shapeType = 0;
    private Integer radius = null;
    private Integer penSize = null;
    private String penColor = null;
    private String brushColor = null;


    public String getUniqueName() {
    	StringBuffer name = new StringBuffer();
    	name.append(super.getUniqueName());
    	name.append("-");
    	name.append(radius);
    	name.append(penSize);
    	name.append(shapeType);
    	name.append(brushColor);
    	name.append(penColor);
    	return(name.toString());
    }
    
    
    /**
     * @return Returns the shapeType.
     */
    public int getShapeType() {
        return shapeType;
    }
    /**
     * @param shapeType The shapeType to set.
     */
    public void setShapeType(int shapeType) {
        this.shapeType = shapeType;
    }
    
    
    /**
     * @return Returns the radius.
     */
    public Integer getRadius() {
        return radius;
    }
    /**
     * @param radius The radius to set.
     */
    public void setRadius(Integer radius) {
        this.radius = radius;
    }
    
    
    /**
     * @return Returns the brushColor.
     */
    public String getBrushColor() {
        return brushColor;
    }
    /**
     * @param brushColor The brushColor to set.
     */
    public void setBrushColor(String brushColor) {
        this.brushColor = brushColor;
    }
    /**
     * @return Returns the penColor.
     */
    public String getPenColor() {
        return penColor;
    }
    /**
     * @param penColor The penColor to set.
     */
    public void setPenColor(String penColor) {
        this.penColor = penColor;
    }
    /**
     * @return Returns the penSize.
     */
    public Integer getPenSize() {
        return penSize;
    }
    /**
     * @param penSize The penSize to set.
     */
    public void setPenSize(Integer penSize) {
        this.penSize = penSize;
    }
}
